<?php

use think\Env;

return [
    'huawei' => [ // 华为配置
        'AppID' => \think\Env::get('huawei.app_id'),
        'AppSecret' => \think\Env::get('huawei.app_secret'),
        'ver' => \think\Env::get('huawei.ver'), //用来解决大版本升级的兼容问题
        'notify_url' => \think\Env::get('huawei.notify_url'),
    ],
    'vivo' => [ // vivo 配置
        'AppID' => \think\Env::get('vivo.app_id'),
        'AppKey' => \think\Env::get('vivo.app_key'),
        'AppSecret' => \think\Env::get('vivo.app_secret'),
        'notify_url' => \think\Env::get('vivo.notify_url'),
    ],
    'xiaomi' => [ // 小米配置
        'AppID' => \think\Env::get('xiaomi.app_id'),
        'AppKey' => \think\Env::get('xiaomi.app_key'),
        'AppSecret' => \think\Env::get('xiaomi.app_secret'),
        'packageName' => \think\Env::get('xiaomi.package_name')
    ],
    'oppo' => [ // oppo配置
        'AppKey' => \think\Env::get('oppo.app_key'),
        'AppSecret' => \think\Env::get('oppo.app_secret'),
        'MasterSecret' => \think\Env::get('oppo.master_secret'),
        'channelId' => \think\Env::get('oppo.channel_id'),
        'notify_url' => \think\Env::get('oppo.notify_url'),
    ],
    'jpush' => [ // 极光配置
        'AppKey' => \think\Env::get('jiguang.app_key'),
        'MasterSecret' => \think\Env::get('jiguang.master_secret'),
        'apns_production' => \think\Env::get('jiguang.apns_production'), // ios推送环境,true=>生产环境,false=>开发环境
        'notify_url' => \think\Env::get('jiguang.notify_url'),
    ],
    'apns' => [ //ios APNS push
        'is_use' => (bool)Env::get('apns.is_use'),
        'app_bundle_id' => Env::get('apns.app_bundle_id'),
        'certificate_path' => Env::get('apns.certificate_path'),
        'certificate_secret' => Env::get('apns.certificate_secret'),
        'apns_production' => Env::get('apns.apns_production'),
        'concurrent_requests' => (int)Env::get('apns.concurrent_requests'),
        'max_concurrent_connections' => (int)Env::get('apns.max_concurrent_connections'),
    ]
];
